// 统计分析
import { role } from '@/utils/const/constant'

export default (layout) => {
  return {
    path: '/analyse',
    component: layout,
    redirect: '/analyse/work',
    meta: {
      title: 'analyse',
      icon: 'zonghefenxi',
      roles: [role.admin]
    },
    children: [
      {
        path: '/analyse/work',
        component: () =>
          import(/* webpackChunkName: "analyse" */ '@/views/analyse/work'),
        name: 'workAnalyse',
        meta: {
          title: 'workAnalyse',
          icon: 'work',
          roles: [role.admin]
        }
      },
      {
        path: '/analyse/bug',
        component: () =>
          import(/* webpackChunkName: "analyse" */ '@/views/analyse/bug'),
        name: 'bugAnalyse',
        meta: {
          title: 'bugAnalyse',
          icon: 'bug',
          roles: [role.admin]
        }
      }
    ]
  }
}
